package kr.saeildamil.beatboxmix;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class MainIntro3 extends Activity {
	int width;
	int height;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Window win = getWindow();
		width = win.getWindowManager().getDefaultDisplay().getWidth();
		height = win.getWindowManager().getDefaultDisplay().getHeight();
		win.requestFeature(Window.FEATURE_NO_TITLE);
		win.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

		setContentView(R.layout.mainintro3);
	}

	public void mOnClick(View v) {
		switch (v.getId()) {
		case R.id.main3img_btn03:
			startActivity(new Intent(this, MainIntro2.class));
			finish();
			overridePendingTransition(R.anim.end_exit, R.anim.end_enter);
			break;
		case R.id.main3img_btn07:
			Intent intent = new Intent(this, MainSelect.class);
			//.intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
			startActivity(intent);
			overridePendingTransition(R.anim.start_enter, R.anim.start_exit);
			finish();
			break;
		case R.id.main3img_btn01:
			startActivity(new Intent(this, MainPlayer.class));
			break;
		}
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		switch (keyCode) {
		case KeyEvent.KEYCODE_BACK:
			return true;
		}
		return super.onKeyDown(keyCode, event);
	}
}
